package cn.edu.scau.cmi.chenzehan.factoryPattern.factory;

import cn.edu.scau.cmi.chenzehan.factoryPattern.insurance.Insurance_claims;

public class DamageFactory {
	public static DamageFactory getInstanceFactory(String insuranceTypeString) {
		switch (insuranceTypeString) {
		case "汽车损坏": 
			return new AutomobileDamageFactory();
        case "人员伤亡":
            return new CasualtiesFactory();
        case "驾驶员身体受伤":
			return new DriverInjuredFactory();
		}
         return null;
	
	}
	public Insurance_claims getProductInstance() {
		return null;
	}

}
